//
//  AnimeControllerViewModel.m
//  GentlemanAnime
//
//  Created by dlios on 15-6-29.
//  Copyright (c) 2015年 lanou3g.com 蓝欧科技. All rights reserved.
//

#import "AnimeControllerViewModel.h"

@implementation AnimeControllerViewModel

- (void)dealloc {
    [_animeindexModel release];
    [_animeNewModel release];
    [_animelianzaiModel release];
    [_animewanjieModel release];
    [_animeyuanchuangModel release];
    [super dealloc];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"index"]) {
        self.animeindexModel = [[AnimeModel alloc] init];
        [self.animeindexModel setValuesForKeysWithDictionary:(NSDictionary *)value];
    } else if ([key isEqualToString:@"new"]) {
        self.animeNewModel = [[AnimeModel alloc] init];
        [self.animeNewModel setValuesForKeysWithDictionary:(NSDictionary *)value];
    } else if ([key isEqualToString:@"lianzai"]) {
        self.animelianzaiModel = [[AnimeModel alloc] init];
        [self.animelianzaiModel setValuesForKeysWithDictionary:(NSDictionary *)value];
    } else if ([key isEqualToString:@"wanjie"]) {
        self.animewanjieModel = [[AnimeModel alloc] init];
        [self.animewanjieModel setValuesForKeysWithDictionary:(NSDictionary *)value];
    } else if ([key isEqualToString:@"yuanchuang"]) {
        self.animeyuanchuangModel = [[AnimeModel alloc] init];
        [self.animeyuanchuangModel setValuesForKeysWithDictionary:(NSDictionary *)value];
    }
}

@end
